﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace splitthecheck
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string state = DropDownList2.SelectedValue;
            string city = City.Text;
            string zip = Zip.Text;
            string a = DropDownList1.SelectedValue;
            Label1.Text = state;

            if (City.Text == "" && Zip.Text == "")
            {
                jatEntities2 txtContents = new jatEntities2();
                var query = from p in txtContents.RESTAURANTs
                            where p.rtype == DropDownList1.SelectedItem.Text
                            select p;
                IEnumerable<RESTAURANT> stuff = query.ToList();
                //ListBox1.Items.Add(
            }

            
        }       

   }
}